Eiffel Assertions and the External Structure of Classes and Objects
نویسنده
چکیده
The “external structure” in an object oriented system refers here to the graphs of objects and classes. The class structure graph or class model is derived from the object structure graph or object model, and in this operation structural information is lost, or never made explicit. Although object oriented programming languages capture the class model as declarations, contradictory assumptions about object model properties may be made introducing faults into the design. Consistent assumptions about the object model can be specified in the code using assertions such as Eiffel’s invariants, preconditions and postconditions. Three examples specifying the external structure are considered.
منابع مشابه
Eiffel: An Introduction
The Eiffel language and environment apply the conceplS of object-oriented design and programming to the construction of high quality software. As a language, Eiffel provides a range of features for the construction of reusable and reliable software components: classes. multiple inheritance. polymorphism and dynamic binding. genericity. strict static type checking. a disciplined exception mechan...
متن کاملEIFFEL: Object-Oriented Design for Software Engineering
Eiffel is an object-oriented language and environment combining the advances in reusable, flexible programming brought by object-oriented techniques with the concerns introduced by modem software engineering, particularly correcmess, reliability and efficiency. As a language, Eiffel offers an extensive combination of facilities: multiple and repeated inheritance, polymorphism and dynamic bindin...
متن کاملJass – Java with Assertions 1
Design by Contract, proposed by Meyer for the programming language Eiffel, is a technique that allows run-time checks of specification violation and their treatment during program execution. Jass, Java with assertions, is a Design by Contract extension for Java allowing to annotate Java programs with specifications in the form of assertions. The Jass tool is a pre-compiler that translates annot...
متن کاملJass - Java with Assertions
Design by Contract, proposed by Meyer for the programming language Eiffel, is a technique that allows run-time checks of specification violation and their treatment during program execution. Jass, Java with assertions, is a Design by Contract extension for Java allowing to annotate Java programs with specifications in the form of assertions. The Jass tool is a pre-compiler that translates annot...
متن کاملAnother Mediocre Assertion Mechanism for C++
Assertions are a basic programming ingredient. If the language you use does not support them in a proper way, at least you must use some kind of standardized comments, to express things like preconditions for functions. The comments can be turned into executable functions by a preprocessor, but we could write the function calls directly, with the advantage of having the compiler check their syn...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Journal of Object Technology
دوره 1 شماره
صفحات -
تاریخ انتشار 2002